import request from '@/utils/request'

export function not(id) {
  return request({
    url: '/session/not?id=' + id,
    method: 'get'
  })
}

export function already(id) {
  return request({
    url: '/session/already?id=' + id,
    method: 'get'
  })
}

export function createSession(id, toUserId, toUserName) {
  return request({
    url: '/session/createSession?id=' + id + "&toUserId=" + toUserId + "&toUserName=" + toUserName,
    method: 'get'
  })
}

export function delSession(sessionId){
  return request({
    url:'/session/delSession?sessionId=' + sessionId,
    method:'get'
  })
}

export function msgList(sessionId){
  return request({
    url:'/msgInfo/msgList?sessionId=' + sessionId,
    method:'get'
  })
}

export function chatVerifyToken(token){
  return request({
    url:'/session/chatVerifyToken?token='+token,
    method:'get'
  })
}
